#include "Person.h"

//静态成员必须要定义并初始化
int Person::num = 34;

Person::Person()
{
	cout << "Person无参构造函数" << endl;
}
Person::Person(int age, string name, string gender)
{
	this->age = age;
	this->name = name;
	this->gender = gender;
}

Person::~Person()
{
	cout << "Person析构函数" << endl;
}

int Person::get_age()
{
	return this->age;
}

string Person::get_gender()
{
	return this->gender;
}
string Person::get_name()
{
	return this->name;
}

void Person::set_age(int age)
{
	this->age = age;
}

void Person::set_gender(string gender)
{
	this->gender = gender;
}

void Person::set_name(string name)
{
	this->name = name;
}

int Person::get_num()
{
	return num;
}